package com.tledu.data.imports.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

@Data
@NoArgsConstructor
public class TdOperatingParams extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 项目id */
    @ExcelProperty(value = "项目id")
    private Long projectId;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "记录时间")
    private Date recordTime;

    /** 是否启用 */
    @ExcelProperty(value = "是否启用")
    private String enable;

    /** 创建人 */
    @ExcelProperty(value = "创建人")
    private Long createUser;

    /** 更新人 */
    @ExcelProperty(value = "更新人")
    private Long updateUser;

    /** 删除标志 0代表未删除 */
    @ExcelProperty(value = "删除标志 0代表未删除")
    private Integer isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    //    @Override
//    public String toString() {
//        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
//                .append("id", getId())
//                .append("projectId", getProjectId())
//                .append("recordTime", getRecordTime())
//                .append("remark", getRemark())
//                .append("enable", getEnable())
//                .append("createUser", getCreateUser())
//                .append("createTime", getCreateTime())
//                .append("updateUser", getUpdateUser())
//                .append("updateTime", getUpdateTime())
//                .append("isDeleted", getIsDeleted())
//                .toString();
//    }

    public TdOperatingParams(TdOperatingParams tdOperatingParams) {
        this.id = tdOperatingParams.id;
        this.projectId = tdOperatingParams.projectId;
        this.recordTime = tdOperatingParams.recordTime;
        this.enable = tdOperatingParams.enable;
        this.createUser = tdOperatingParams.createUser;
        this.updateUser = tdOperatingParams.updateUser;
        this.isDeleted = tdOperatingParams.isDeleted;
    }

    public TdOperatingParams() {
    }
}
